using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;

public class SnowSlow : MonoBehaviour
{
    // public AudioClip AudioClipGrass;
    // public AudioClip AudioClipSnow;
    // public ItemData_SO iceShoes;
    // private void OnTriggerEnter(Collider other)
    // {
    //     if (other.CompareTag("Player"))
    //     {
    //         if (InventoryManager.Instance.equipmentData.items[1].itemData != iceShoes)
    //         {
    //             GameManager.Instance.playerStats.gameObject.GetComponent<NavMeshAgent>().speed *= 0.5f;
    //         }
    //         GameManager.Instance.playerStats.gameObject.GetComponent<AudioSource>().clip = AudioClipSnow;
    //     }
    // }
    //
    // private void OnTriggerExit(Collider other)
    // {
    //     if (other.CompareTag("Player"))
    //     {
    //         if (InventoryManager.Instance.equipmentData.items[1].itemData != iceShoes)
    //         {
    //             GameManager.Instance.playerStats.gameObject.GetComponent<NavMeshAgent>().speed *= 2f;
    //         }
    //
    //         GameManager.Instance.playerStats.gameObject.GetComponent<AudioSource>().clip = AudioClipGrass;
    //     }
    // }
}
